<?php
namespace catchAdmin\basics\model\search;

trait ProviderSearch
{
    public function searchAccountCodeAttr($query, $value, $data)
    {
        return $query->whereLike('account_code', $value);
    }

    public function searchAccountNameAttr($query, $value, $data)
    {
        return $query->whereLike('account_name', $value);
    }


    public function searchSerialNumberAttr($query, $value, $data)
    {
        return $query->whereIn('serial_number', $value);
    }
}